package com.libgdxbar.pvzlikegame.objects;

import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.math.Vector2;
import com.libgdxbar.pvzlikegame.AssetsLoader;
import com.libgdxbar.pvzlikegame.entities.LocationEntity;
import org.libgdxbar.projects.interfaces.renderer.BatchRenderable;

public class SampleTexturePlant extends LocationEntity implements BatchRenderable {
	private final Texture texture = AssetsLoader.getInstance().get("plant-stub.png", Texture.class);

	public SampleTexturePlant(float x, float y) {
		super(x, y);
	}

	@Override
	public void run(float delta) {
		super.run(delta);
	}

	@Override
	public void render(Batch batch) {
		Vector2 position = getPosition();
		batch.draw(texture, position.x, position.y, 50, 50);
	}
}
